<?php
namespace WebApper\Form\Element;

class ModalToggle extends \WebApper\Form\Element {
	public function __construct($value) {
		$properties = array("value" => $value);
		parent::__construct("", "", $properties);
	}

	public function render() {
		$id = $this->_form->getAttribute("id");
		echo '<a href="#' . $id . 'Modal" role="button" class="btn" data-toggle="modal">' . $this->_attributes["value"] . '</a>';
	}
}
